<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ionafan2
 * Date: 08.06.13
 * Time: 16:02
 * To change this template use File | Settings | File Templates.
 */

namespace Ionafan2\GetonlyimgBundle\Tests\Services;
use Ionafan2\GetonlyimgBundle\Services\ImageProcessor;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class ImageProcessorTestCase extends  WebTestCase {


    protected $container;

    public function testServiceAvailableInContainer()
    {
        /** @var $imageProcessor ImageProcessor */
        $imageProcessor = $this->container->get('image.processor');

        $this->assertTrue($imageProcessor instanceof ImageProcessor);
    }

    protected function setUp()
    {
        $client = static::createClient();
        $this->container = $client->getContainer();
    }



    protected function tearDown()
    {
        unset($this->container);
    }

}
